package com.always.electrical.energy.utils;

public class Util {

    public static String getCmd(String s) {
        String json = s.replaceAll("\\s*", "");
        int start = json.indexOf("cmd");
        int end = json.indexOf(",", start);
        return json.substring(start + 6, end - 1);
    }
}
